package com.music.service.impl;

import com.music.dao.NewDiscMapper;
import com.music.entity.NewDisc;
import com.music.service.NewDiscService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
@Transactional
public class NewDiscServiceImpl implements NewDiscService {
    @Autowired
    private NewDiscMapper newDiscMapper;
    @Override
    public List<NewDisc> findByCondition(NewDisc newDisc) {
        List<NewDisc> list=new ArrayList<NewDisc>();
        list=newDiscMapper.selectByCondition(newDisc);
        return list;
    }
}
